﻿using KnKModTools.Helper;
using System.Globalization;
using System.Windows.Data;

namespace KnKModTools.UI
{
    public class ImageToIndexConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            return value;
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            return UIHelper.IsNumber(value);
        }
    }
}